package com.healthcloud.service.rent.impl;

import com.healthcloud.dao.rent.InstrumentWechatDao;
import com.healthcloud.entity.rent.InstrumentWechatEntity;
import com.healthcloud.service.rent.InstrumentWechatService;
import com.healthcloud.utils.PageParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("instrumentWechatService")
@Transactional
public class InstrumentWechatServiceImpl implements InstrumentWechatService {

	@Autowired
	private InstrumentWechatDao instrumentWechatDao;

	@Override
	public List<InstrumentWechatEntity> queryList(InstrumentWechatEntity entity, PageParam pageParam) {
		return instrumentWechatDao.queryList(entity, pageParam);
	}

	@Override
	public void delete(Long id) {
		instrumentWechatDao.delete(id);
	}

	@Override
	public void update(InstrumentWechatEntity entity) {
		instrumentWechatDao.update(entity);
	}

	@Override
	public void save(InstrumentWechatEntity entity) {
		instrumentWechatDao.save(entity);
	}

	@Override
	public InstrumentWechatEntity getBySn(String sn) {
		return instrumentWechatDao.getBySn(sn);
	}

	@Override
	public InstrumentWechatEntity getBySnAndOpenId(String sn, String openId) {
		return instrumentWechatDao.getBySnAndOpenId(sn, openId);
	}

	@Override
	public InstrumentWechatEntity getByOpenId(String openId) {
		return instrumentWechatDao.getByOpenId(openId);
	}

	@Override
	public InstrumentWechatEntity getByOpenIdLimit(String openId) {
		return instrumentWechatDao.getByOpenIdLimit(openId);
	}

	@Override
	public InstrumentWechatEntity getByIdCardLimit(String idCard) {
		return instrumentWechatDao.getByIdCardLimit(idCard);
	}

	@Override
	public InstrumentWechatEntity getBySnAndIdCard(String sn, String idCard) {
		return instrumentWechatDao.getBySnAndIdCard(sn, idCard);
	}
}
